part of 'articles_bloc.dart';

// LoadArticles UpdateArticleInList ReloadArticles LoadArticlesFeed 

sealed class ArticlesEvent extends Equatable {
  const ArticlesEvent();

  @override
  List<Object> get props => [];
}

class LoadArticlesEvent extends ArticlesEvent {
  final String tag;
  final String author;
  final bool favorited;
  final bool refresh;

  const LoadArticlesEvent(this.tag, this.author, this.favorited,  {required  this.refresh} );

  @override
  List<Object> get props => [tag, author, favorited, refresh];
}

class UpdateArticleInListEvent extends ArticlesEvent {
  final Article article;

  const UpdateArticleInListEvent(this.article);

  @override
  List<Object> get props => [article];
}

class ReloadArticlesEvent extends ArticlesEvent {}

class LoadArticlesFeedEvent extends ArticlesEvent {
  final bool refresh;

  const LoadArticlesFeedEvent({this.refresh = false});

  @override
  List<Object> get props => [refresh];
}


